<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>css长度单位 | 你好,欢迎来到MyNote</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../lesson/mobile-project/20170817project.html" />
    
    
    <link rel="prev" href="../../lesson/viewport/20170816.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="3.3.1.1"
        data-chapter-title="css长度单位"
        data-filepath="lesson/viewport/0816-1.md"
        data-basepath="../.."
        data-revision="Thu Aug 31 2017 12:00:31 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="lesson/html/HTML.html">
            
                
                    <a href="../../lesson/html/HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        一.HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="lesson/html/20170718.html">
            
                
                    <a href="../../lesson/html/20170718.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        第一节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="lesson/html/0718-3.html">
            
                
                    <a href="../../lesson/html/0718-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.1.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="lesson/html/0718-2.html">
            
                
                    <a href="../../lesson/html/0718-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.2.</b>
                        
                        注释标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="lesson/html/0718-1.html">
            
                
                    <a href="../../lesson/html/0718-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.3.</b>
                        
                        块级和行内元素
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="lesson/html/20170719.html">
            
                
                    <a href="../../lesson/html/20170719.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        第二节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="lesson/html/0719-3.html">
            
                
                    <a href="../../lesson/html/0719-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="lesson/html/0719-4.html">
            
                
                    <a href="../../lesson/html/0719-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        文本格式化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="lesson/html/0719-1.html">
            
                
                    <a href="../../lesson/html/0719-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        audio音频标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="lesson/html/0719-2.html">
            
                
                    <a href="../../lesson/html/0719-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.4.</b>
                        
                        video音频标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="lesson/html/20170720.html">
            
                
                    <a href="../../lesson/html/20170720.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        第三节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="lesson/html/input.html">
            
                
                    <a href="../../lesson/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.1.</b>
                        
                        课后补充
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="lesson/html/0720-1.html">
            
                
                    <a href="../../lesson/html/0720-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.2.</b>
                        
                        HTML表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="lesson/html/0720-2.html">
            
                
                    <a href="../../lesson/html/0720-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.3.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="lesson/html/20170721.html">
            
                
                    <a href="../../lesson/html/20170721.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        第四节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="lesson/html/0721-5.html">
            
                
                    <a href="../../lesson/html/0721-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.1.</b>
                        
                        icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="lesson/html/0721-2.html">
            
                
                    <a href="../../lesson/html/0721-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.2.</b>
                        
                        自定义列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="lesson/html/0721-3.html">
            
                
                    <a href="../../lesson/html/0721-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.3.</b>
                        
                        iframe内嵌框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="lesson/html/0721-4.html">
            
                
                    <a href="../../lesson/html/0721-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.4.</b>
                        
                        H5的语义化标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="lesson/html/0721-1.html">
            
                
                    <a href="../../lesson/html/0721-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.5.</b>
                        
                        图片的热区hotmap
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="lesson/css/CSS.html">
            
                
                    <a href="../../lesson/css/CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        二.CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="lesson/css/20170724.html">
            
                
                    <a href="../../lesson/css/20170724.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        第一节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="lesson/css/0724-1.html">
            
                
                    <a href="../../lesson/css/0724-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="lesson/css/0724-3.html">
            
                
                    <a href="../../lesson/css/0724-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        ID选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="lesson/css/0724-4.html">
            
                
                    <a href="../../lesson/css/0724-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="lesson/css/0724-5.html">
            
                
                    <a href="../../lesson/css/0724-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="lesson/css/扩展.html">
            
                
                    <a href="../../lesson/css/扩展.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="lesson/css/扩展2.html">
            
                
                    <a href="../../lesson/css/扩展2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="lesson/css/0724-2.html">
            
                
                    <a href="../../lesson/css/0724-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        class类选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="lesson/css/20170725.html">
            
                
                    <a href="../../lesson/css/20170725.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        第二节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="lesson/css/0725-1.html">
            
                
                    <a href="../../lesson/css/0725-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="lesson/css/0725-2.html">
            
                
                    <a href="../../lesson/css/0725-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        文本描述
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="lesson/css/0725-3.html">
            
                
                    <a href="../../lesson/css/0725-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        文字阴影
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="lesson/css/0725-4.html">
            
                
                    <a href="../../lesson/css/0725-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        字体嵌入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="lesson/css/0725-5.html">
            
                
                    <a href="../../lesson/css/0725-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        CSS颜色
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="lesson/css/20170726.html">
            
                
                    <a href="../../lesson/css/20170726.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        第三节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="lesson/css/0726-1.html">
            
                
                    <a href="../../lesson/css/0726-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        border边框
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="lesson/css/0726-2.html">
            
                
                    <a href="../../lesson/css/0726-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        background背景
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="lesson/css/20170727.html">
            
                
                    <a href="../../lesson/css/20170727.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        第四节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="lesson/css/0727-2.html">
            
                
                    <a href="../../lesson/css/0727-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.1.</b>
                        
                        文字溢出
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="lesson/css/0727-3.html">
            
                
                    <a href="../../lesson/css/0727-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.2.</b>
                        
                        word-break
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="lesson/css/0727-1.html">
            
                
                    <a href="../../lesson/css/0727-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.3.</b>
                        
                        文字对齐方式
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="lesson/css/20170728.html">
            
                
                    <a href="../../lesson/css/20170728.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        第五节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="lesson/css/0728-1.html">
            
                
                    <a href="../../lesson/css/0728-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.1.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="lesson/css/0728-2.html">
            
                
                    <a href="../../lesson/css/0728-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.2.</b>
                        
                        z-index
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="lesson/css/20170731.html">
            
                
                    <a href="../../lesson/css/20170731.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        第六节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="lesson/css/20170801.html">
            
                
                    <a href="../../lesson/css/20170801.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        第七节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="lesson/css/0801-2.html">
            
                
                    <a href="../../lesson/css/0801-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.1.</b>
                        
                        git安装使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7.2" data-path="lesson/css/0801-1.html">
            
                
                    <a href="../../lesson/css/0801-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.2.</b>
                        
                        SASS安装使用
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="lesson/css/20170802.html">
            
                
                    <a href="../../lesson/css/20170802.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        第八节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.8.1" data-path="lesson/css/0802-1.html">
            
                
                    <a href="../../lesson/css/0802-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.1.</b>
                        
                        css3 过渡（transition）
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8.2" data-path="lesson/css/0802-2.html">
            
                
                    <a href="../../lesson/css/0802-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.2.</b>
                        
                        css3 变换（transform）
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="lesson/css/20170803.html">
            
                
                    <a href="../../lesson/css/20170803.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        第九节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="lesson/css/20170804.html">
            
                
                    <a href="../../lesson/css/20170804.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        第十节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="lesson/css/0804-1.html">
            
                
                    <a href="../../lesson/css/0804-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.1.</b>
                        
                        滤镜
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="lesson/media/media.html">
            
                
                    <a href="../../lesson/media/media.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        三.项目期间
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="lesson/css/20170807.html">
            
                
                    <a href="../../lesson/css/20170807.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        鲁班项目(第一天)
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="lesson/css/20170808.html">
            
                
                    <a href="../../lesson/css/20170808.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.1.</b>
                        
                        鲁班项目(第二天)
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="lesson/css/20170809.html">
            
                
                    <a href="../../lesson/css/20170809.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.2.</b>
                        
                        鲁班项目(第三天)
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="lesson/css/20170811.html">
            
                
                    <a href="../../lesson/css/20170811.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.3.</b>
                        
                        鲁班项目(第四天)
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="lesson/viewport/20170814.html">
            
                
                    <a href="../../lesson/viewport/20170814.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        viewport
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.2.1" data-path="lesson/viewport/20170814-1.html">
            
                
                    <a href="../../lesson/viewport/20170814-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.1.</b>
                        
                        viewport特性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="lesson/viewport/20170815.html">
            
                
                    <a href="../../lesson/viewport/20170815.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        移动端项目
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1" data-path="lesson/viewport/20170816.html">
            
                
                    <a href="../../lesson/viewport/20170816.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.1.</b>
                        
                        倒霉
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="3.3.1.1" data-path="lesson/viewport/0816-1.html">
            
                
                    <a href="../../lesson/viewport/0816-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.1.1.</b>
                        
                        css长度单位
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3.2" data-path="lesson/mobile-project/20170817project.html">
            
                
                    <a href="../../lesson/mobile-project/20170817project.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.2.</b>
                        
                        mobile项目入手
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.3" data-path="lesson/mobile-project/20170818.html">
            
                
                    <a href="../../lesson/mobile-project/20170818.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.3.</b>
                        
                        记录
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.4" data-path="lesson/viewport/20170821.html">
            
                
                    <a href="../../lesson/viewport/20170821.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.4.</b>
                        
                        项目中所遇的问题
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.5" data-path="lesson/viewport/20170822.html">
            
                
                    <a href="../../lesson/viewport/20170822.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.5.</b>
                        
                        当日总结
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.6" data-path="lesson/viewport/20170823.html">
            
                
                    <a href="../../lesson/viewport/20170823.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.6.</b>
                        
                        上交测试版
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.7" data-path="lesson/viewport/20170824.html">
            
                
                    <a href="../../lesson/viewport/20170824.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.7.</b>
                        
                        当日总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="lesson/css/20170830.html">
            
                
                    <a href="../../lesson/css/20170830.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        接触框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="lesson/css/20170831.html">
            
                
                    <a href="../../lesson/css/20170831.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        语法与规则 Rules
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >你好,欢迎来到MyNote</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="css&#x957F;&#x5EA6;&#x5355;&#x4F4D;">CSS&#x957F;&#x5EA6;&#x5355;&#x4F4D;</h2>
<h3 id=""><length></length></h3>
<p><strong>&#x8BF4;&#x660E;&#xFF1A;</strong>   </p>
<blockquote>
<ol>
<li><code>&lt;number&gt;</code>&#x63A5;&#x957F;&#x5EA6;&#x5355;&#x4F4D;&#x3002;   </li>
<li>&#x7279;&#x6B8A;&#x503C;0&#x53EF;&#x4EE5;&#x7701;&#x7565;&#x5355;&#x4F4D;&#x3002;&#x4F8B;&#x5982;&#xFF1A;margin:0px&#x53EF;&#x4EE5;&#x5199;&#x6210;margin:0    </li>
<li>&#x4E00;&#x4E9B;&#x5C5E;&#x6027;&#x53EF;&#x80FD;&#x5141;&#x8BB8;&#x6709;&#x8D1F;&#x957F;&#x5EA6;&#x503C;&#xFF0C;&#x6216;&#x8005;&#x6709;&#x4E00;&#x5B9A;&#x7684;&#x8303;&#x56F4;&#x9650;&#x5236;&#x3002;&#x5982;&#x679C;&#x4E0D;&#x652F;&#x6301;&#x8D1F;&#x957F;&#x5EA6;&#x503C;&#xFF0C;&#x90A3;&#x5E94;&#x8BE5;&#x53D8;&#x6362;&#x5230;&#x80FD;&#x591F;&#x88AB;&#x652F;&#x6301;&#x7684;&#x6700;&#x8FD1;&#x7684;&#x4E00;&#x4E2A;&#x957F;&#x5EA6;&#x503C;&#x3002;   </li>
<li>&#x957F;&#x5EA6;&#x5355;&#x4F4D;&#x5305;&#x62EC;&#x5305;&#x62EC;&#xFF1A;&#x76F8;&#x5BF9;&#x5355;&#x4F4D;&#x548C;&#x7EDD;&#x5BF9;&#x5355;&#x4F4D;&#x3002;   </li>
<li>&#x76F8;&#x5BF9;&#x957F;&#x5EA6;&#x5355;&#x4F4D;&#x5305;&#x62EC;&#x6709;&#xFF1A; em, ex, ch, rem, vw, vh, vmax, vmin   </li>
<li>&#x7EDD;&#x5BF9;&#x957F;&#x5EA6;&#x5355;&#x4F4D;&#x5305;&#x62EC;&#x6709;&#xFF1A; cm, mm, q, in, pt, pc, px   </li>
</ol>
</blockquote>
<h3 id="&#x5C3A;&#x5BF8;">&#x5C3A;&#x5BF8;</h3>
<table>
<thead>
<tr>
<th style="text-align:left">&#x5355;&#x4F4D;</th>
<th style="text-align:left">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">%</td>
<td style="text-align:left">&#x767E;&#x5206;&#x6BD4;</td>
</tr>
<tr>
<td style="text-align:left">in</td>
<td style="text-align:left">&#x82F1;&#x5BF8;</td>
</tr>
<tr>
<td style="text-align:left">cm</td>
<td style="text-align:left">&#x5398;&#x7C73;</td>
</tr>
<tr>
<td style="text-align:left">mm</td>
<td style="text-align:left">&#x6BEB;&#x7C73;</td>
</tr>
<tr>
<td style="text-align:left">em</td>
<td style="text-align:left">1em &#x7B49;&#x4E8E;&#x5F53;&#x524D;&#x7684;&#x5B57;&#x4F53;&#x5C3A;&#x5BF8;&#x3002;<br>2em &#x7B49;&#x4E8E;&#x5F53;&#x524D;&#x5B57;&#x4F53;&#x5C3A;&#x5BF8;&#x7684;&#x4E24;&#x500D;&#x3002;<br>&#x4F8B;&#x5982;&#xFF0C;&#x5982;&#x679C;&#x67D0;&#x5143;&#x7D20;&#x4EE5; 12pt &#x663E;&#x793A;&#xFF0C;&#x90A3;&#x4E48; 2em &#x662F;24pt&#x3002;<br>&#x5728; CSS &#x4E2D;&#xFF0C;em &#x662F;&#x975E;&#x5E38;&#x6709;&#x7528;&#x7684;&#x5355;&#x4F4D;&#xFF0C;&#x56E0;&#x4E3A;&#x5B83;&#x53EF;&#x4EE5;&#x81EA;&#x52A8;&#x9002;&#x5E94;&#x7528;&#x6237;&#x6240;&#x4F7F;&#x7528;&#x7684;&#x5B57;&#x4F53;&#x3002;<br></td>
</tr>
<tr>
<td style="text-align:left">ex</td>
<td style="text-align:left">&#x4E00;&#x4E2A; ex &#x662F;&#x4E00;&#x4E2A;&#x5B57;&#x4F53;&#x7684; x-height&#x3002; (x-height &#x901A;&#x5E38;&#x662F;&#x5B57;&#x4F53;&#x5C3A;&#x5BF8;&#x7684;&#x4E00;&#x534A;&#x3002;)</td>
</tr>
<tr>
<td style="text-align:left">pt</td>
<td style="text-align:left">&#x78C5; (1 pt &#x7B49;&#x4E8E; 1/72 &#x82F1;&#x5BF8;)</td>
</tr>
<tr>
<td style="text-align:left">pc</td>
<td style="text-align:left">12 &#x70B9;&#x6D3B;&#x5B57; (1 pc &#x7B49;&#x4E8E; 12 &#x70B9;)</td>
</tr>
<tr>
<td style="text-align:left">px</td>
<td style="text-align:left">&#x50CF;&#x7D20; (&#x8BA1;&#x7B97;&#x673A;&#x5C4F;&#x5E55;&#x4E0A;&#x7684;&#x4E00;&#x4E2A;&#x70B9;)</td>
</tr>
</tbody>
</table>
<h4 id="&#x5355;&#x4F4D;&#x8BF4;&#x660E;">&#x5355;&#x4F4D;&#x8BF4;&#x660E;</h4>
<p><strong>em&#x8BF4;&#x660E;&#xFF1A;</strong><br>    &#x76F8;&#x5BF9;&#x957F;&#x5EA6;&#x5355;&#x4F4D;&#x3002;&#x76F8;&#x5BF9;&#x4E8E;&#x5F53;&#x524D;&#x5BF9;&#x8C61;&#x5185;&#x6587;&#x672C;&#x7684;&#x5B57;&#x4F53;&#x5C3A;&#x5BF8;&#x3002;
    &#x5982;&#x5F53;&#x524D;&#x5BF9;&#x884C;&#x5185;&#x6587;&#x672C;&#x7684;&#x5B57;&#x4F53;&#x5C3A;&#x5BF8;&#x672A;&#x88AB;&#x4EBA;&#x4E3A;&#x8BBE;&#x7F6E;&#xFF0C;&#x5219;&#x76F8;&#x5BF9;&#x4E8E;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x9ED8;&#x8BA4;&#x5B57;&#x4F53;&#x5C3A;&#x5BF8;&#x3002;</p>
<p><strong>in&#x8BF4;&#x660E;&#xFF1A;</strong><br>    &#x82F1;&#x5BF8;&#xFF08;Inches&#xFF09;&#x3002;&#x7EDD;&#x5BF9;&#x957F;&#x5EA6;&#x5355;&#x4F4D;&#x3002;   </p>
<p><strong>rem&#x8BF4;&#x660E;&#xFF1A;</strong><br>    &#x76F8;&#x5BF9;&#x957F;&#x5EA6;&#x5355;&#x4F4D;&#x3002;&#x76F8;&#x5BF9;&#x4E8E;&#x6839;&#x5143;&#x7D20;(&#x5373;html&#x5143;&#x7D20;)font-size&#x8BA1;&#x7B97;&#x503C;&#x7684;&#x500D;&#x6570;</p>
<p><strong>ch&#x8BF4;&#x660E;&#xFF1A;</strong><br>    &#x6570;&#x5B57;&#x201C;0&#x201D;&#x7684;&#x5BBD;&#x5EA6;</p>
<p><strong>vw&#x8BF4;&#x660E;&#xFF1A;</strong><br>    &#x76F8;&#x5BF9;&#x4E8E;&#x89C6;&#x53E3;&#x7684;&#x5BBD;&#x5EA6;&#x3002;&#x89C6;&#x53E3;&#x88AB;&#x5747;&#x5206;&#x4E3A;100&#x5355;&#x4F4D;&#x7684;vw</p>
<p><strong>vh&#x8BF4;&#x660E;&#xFF1A;</strong><br>    &#x76F8;&#x5BF9;&#x4E8E;&#x89C6;&#x53E3;&#x7684;&#x9AD8;&#x5EA6;&#x3002;&#x89C6;&#x53E3;&#x88AB;&#x5747;&#x5206;&#x4E3A;100&#x5355;&#x4F4D;&#x7684;vh</p>
<p><strong>vmax&#x8BF4;&#x660E;&#xFF1A;</strong><br>    &#x76F8;&#x5BF9;&#x4E8E;&#x89C6;&#x53E3;&#x7684;&#x5BBD;&#x5EA6;&#x6216;&#x9AD8;&#x5EA6;&#x4E2D;&#x8F83;&#x5927;&#x7684;&#x90A3;&#x4E2A;&#x3002;&#x5176;&#x4E2D;&#x6700;&#x5927;&#x7684;&#x90A3;&#x4E2A;&#x88AB;&#x5747;&#x5206;&#x4E3A;100&#x5355;&#x4F4D;&#x7684;vmax
    &#x4F8B;&#x5B50;&#xFF1A;&#x5982;&#x679C;&#x89C6;&#x53E3;&#x7684;&#x5BBD;&#x5EA6;&#x662F;300mm&#xFF0C;&#x9AD8;&#x5EA6;&#x662F;200mm&#xFF0C;&#x90A3;&#x4E48;&#x4E0A;&#x8FF0;&#x4EE3;&#x7801;&#x4E2D;h1&#x5143;&#x7D20;&#x7684;&#x5B57;&#x53F7;&#x5C06;&#x4E3A;24mm&#xFF0C;&#x5373;(8x300)/100&#xFF0C;&#x56E0;&#x4E3A;&#x5BBD;&#x5EA6;&#x6BD4;&#x9AD8;&#x5EA6;&#x8981;&#x5927;&#xFF0C;&#x6240;&#x4EE5;&#x8BA1;&#x7B97;&#x7684;&#x65F6;&#x5019;&#x76F8;&#x5BF9;&#x4E8E;&#x5BBD;&#x5EA6;&#x3002;</p>
<p><strong>vmin&#x8BF4;&#x660E;&#xFF1A;</strong> 
    &#x76F8;&#x5BF9;&#x4E8E;&#x89C6;&#x53E3;&#x7684;&#x5BBD;&#x5EA6;&#x6216;&#x9AD8;&#x5EA6;&#x4E2D;&#x8F83;&#x5C0F;&#x7684;&#x90A3;&#x4E2A;&#x3002;&#x5176;&#x4E2D;&#x6700;&#x5C0F;&#x7684;&#x90A3;&#x4E2A;&#x88AB;&#x5747;&#x5206;&#x4E3A;100&#x5355;&#x4F4D;&#x7684;vmin<br>    &#x4F8B;&#x5B50;&#xFF1A;&#x5982;&#x679C;&#x89C6;&#x53E3;&#x7684;&#x5BBD;&#x5EA6;&#x662F;300mm&#xFF0C;&#x9AD8;&#x5EA6;&#x662F;200mm&#xFF0C;&#x90A3;&#x4E48;&#x4E0A;&#x8FF0;&#x4EE3;&#x7801;&#x4E2D;h1&#x5143;&#x7D20;&#x7684;&#x5B57;&#x53F7;&#x5C06;&#x4E3A;16mm&#xFF0C;&#x5373;(8x200)/100&#xFF0C;&#x56E0;&#x4E3A;&#x9AD8;&#x5EA6;&#x6BD4;&#x5BBD;&#x5EA6;&#x8981;&#x5C0F;&#xFF0C;&#x6240;&#x4EE5;&#x8BA1;&#x7B97;&#x7684;&#x65F6;&#x5019;&#x76F8;&#x5BF9;&#x4E8E;&#x9AD8;&#x5EA6;&#x3002;</p>
<blockquote>
<p>&#x7EDD;&#x5BF9;&#x5355;&#x4F4D; cm, mm, q, in, pt, pc, px(px&#x4E3A;&#x76F8;&#x5BF9;&#x957F;&#x5EA6;&#x5355;&#x4F4D;) &#x5355;&#x4F4D;&#x4E4B;&#x95F4;&#x7684;&#x6362;&#x7B97;&#xFF1A;<br>1in = 2.54cm = 25.4 mm = 101.6q = 72pt = 6pc = 96px</p>
</blockquote>
<h3 id="&#x989C;&#x8272;">&#x989C;&#x8272;</h3>
<table>
<thead>
<tr>
<th style="text-align:left">&#x5355;&#x4F4D;</th>
<th style="text-align:left">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">(&#x989C;&#x8272;&#x540D;)</td>
<td style="text-align:left">&#x989C;&#x8272;&#x540D;&#x79F0; (&#x6BD4;&#x5982; red)</td>
</tr>
<tr>
<td style="text-align:left">rgb(x,x,x)</td>
<td style="text-align:left">RGB &#x503C; (&#x6BD4;&#x5982; rgb(255,0,0))</td>
</tr>
<tr>
<td style="text-align:left">rgb(x%, x%, x%)</td>
<td style="text-align:left">RGB &#x767E;&#x5206;&#x6BD4;&#x503C; (&#x6BD4;&#x5982; rgb(100%,0%,0%))</td>
</tr>
<tr>
<td style="text-align:left">#rrggbb</td>
<td style="text-align:left">&#x5341;&#x516D;&#x8FDB;&#x5236;&#x6570; (&#x6BD4;&#x5982; #ff0000)</td>
</tr>
</tbody>
</table>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../lesson/viewport/20170816.html" class="navigation navigation-prev " aria-label="Previous page: 倒霉"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../lesson/mobile-project/20170817project.html" class="navigation navigation-next " aria-label="Next page: mobile项目入手"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-small":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
